// HTML utilities
function hideElement(id)
{
    var el = xGetElementById(id);
    if (el)
    {
        el["__oldDisplayStyle"] = el.style.display;
        el.style.display = "none";
    }
}
 
function showElement(id)
{
    var el = xGetElementById(id);
    if (el)
    {
        el.style.display = el["__oldDisplayStyle"];
        el["__oldDisplayStyle"] = null;
    }
}

function addClass(el, className)
{
    Zapatec.Utils.addClass(el, className);    
}

function removeClass(el, className)
{
    Zapatec.Utils.removeClass(el, className);
}